
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>礼物管理信息</title>
	<script src="<%=request.getContextPath() %>/manage/js/jquery-1.9.1.js"></script>
	<!-- 配置文件 -->
    <script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.all.min.js"> </script>
    <script type="text/javascript" src="detailUpload.js"></script>
</head>
<body>
	<div class="modal fade" id="prDetails" tabindex="-1" role="dialog"
		aria-labelledby="prDetailsLabel" aria-hidden="true">
		<div class="modal-dialog" style="width: 80%">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">礼品信息</h4>
				</div>
				<div class="modal-body">
					<!---***中部***-->
					<div align="left">
						<!--中上部-->
						<!---***图片滚动----对应的样式是rolling.css***-->
						<div align="center">
							<table width="99%">
								<tr>
									<td style="border-style: none; border-width: medium">
										<form id="products" method="post" name="products">
											<div align="left">
												<!--中上部-->
												<!---***图片滚动----对应的样式是rolling.css***-->
												<div align="center">

													<table class="table table-bordered" id="checks">

														<tr>
															<td colspan="2">
																<input type="hidden" readonly="readonly" id="prid" name="id" value="${updatePr.id }" required />
															</td>
														</tr>
														<tr>
															<td style="text-align: right;">名称</td>
															<td><input type="text" id="name" name="name" value="${updatePr.name }" required /></td>
														</tr>
														
														<%-- <tr>
															<td style="text-align: right;">价格</td>
															<td><input type="text" id="pic" name="pic" value="${updatePr.pic }" required /></td>
														</tr> --%>
														<tr>
															<td style="text-align: right;">图片</td>
															<td>
																<textarea rows="" cols=""  id="pic"  name="pic" ></textarea>
																
															</td>
														</tr>
														
														<tr>
															<td style="text-align: right;">类型</td>
															<td>
																<select id="classId" required name="classId">
																		<c:forEach var="cl" items="${classifications}">
																			<option
																				<c:if test="${cl.id == updatePr.classification.id}">selected</c:if>
																				value="${cl.id}">${cl.id}${cl.name}</option>
																		</c:forEach>
																</select> 
															</td>
														</tr>
													</table>
												</div>
												<div id="optBtn" class="modal-footer">
													<button id="saveBtn" type="submit" class="btn btn-primary">保存</button>
													<button type="button" class="btn btn-default"
														data-dismiss="modal">关闭</button>
												</div>
											</div>
										</form>
									</td>
								</tr>
							</table>
						</div>
					</div>
					<!--**中中部**-->
					<div></div>
					<!----------------------********中部结束********---------------------------->
				</div>
				<div class="modal-footer"></div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal -->
	</div>

</body>
</html>


